﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByHand.Services.Code
{
    public class EnumUtility
    {
        public static string GetNameEnumPayType(EPayType type)
        {
            return GetNameEnumPayType((int)type);
        }
        public static string GetNameEnumPayType(int type)
        {
            switch (type)
            {
                case (int)EPayType.SoHaPay:
                    return "Thanh toán qua Sohapay";
                case (int)EPayType.SoHaPayMaster:
                    return "Thanh toán qua Sohapay Master card.";
                case (int)EPayType.SoHaPayVisa:
                    return "Thanh toán qua Visa card.";
                case (int)EPayType.COD:
                    return "Giao hàng tận nơi.(COD)";
                case (int)EPayType.BankTransfer:
                    return "Chuyển tiền qua ngân hàng.";
                default:
                    return "";
            }
        }
    }
}
